
/**
 * 添加onload事件
 * @param func
 */
function addLoadEvent(func) {
    var oldload = window.onload;
    if (typeof oldload != 'function') {
        window.onload = func;
    } else {
        window.onload = function () {
            oldload();
            func();
        }
    }
}